package com.example.yuejian.yuejian.service;

import com.example.yuejian.yuejian.bean.SignupTrain;
import com.example.yuejian.yuejian.bean.Train;
import com.example.yuejian.yuejian.bean.TrainInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/9.
 */

public interface TrainService {
    //所有列表
    @GET("trainlist")
    Call<List<Train>> trainlist();
    //类型列表
    @GET("traintype_list")
    Call<List<Train>> traintypelist(
            @Query("type")int type
    );
    //详情
    @GET("traindetail")
    Call<TrainInfo> traindetail(
            @Query("id")String id
    );
    //活动报名
    @GET("train_signup")
    Call<SignupTrain>signuptrain(
            @Query("tid")String trainid,
            @ Query("uid")String userid,
            @Query("num")int num,
            @Query("username")String username,
            @Query("phone")String  phone,
            @Query("money")double money,
            @ Query("pay_type")String  pay_type);
}
